package Demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 殇
 * Date: 2025-07-12
 * Time: 16:57
 */
public class OuterClass1 {
    public int x=1;
    public static int y=2;

    static class InnerClass{
        public int z=3;
        public void fun(){
            OuterClass1 outerClass1=new OuterClass1();
            System.out.println(outerClass1.x);
            System.out.println(y);
            System.out.println(z);
        }

    }
    public static void main(String[] args) {
        OuterClass1.InnerClass innerClass=new OuterClass1.InnerClass();
        innerClass.fun();
    }
}
